import Api, { IApi } from "/@/api/system";
import { http, ResponseType } from "/@/utils/http";

const url = "/dataSource";

export const { getList, get, add, update, remove }: IApi = Api(url);

export const getAllList = (data?: object): ResponseType => {
  return http.request("get", url + "/allList", { params: data });
};
